//
//  XMGTopicItem.h
//  BuDeJie19
//
//  Created by hjj on 2016/12/3.
//  Copyright © 2016年 hjjuny. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum : NSUInteger {
    XMGTopicItemTypeAll = 1,
    XMGTopicItemTypePicture = 10,
    XMGTopicItemTypeVideo = 41,
    XMGTopicItemTypeVocie = 31,
    XMGTopicItemTypeText = 29
} XMGTopicItemType;

@class XMGCommentItem;

@interface XMGTopicItem : NSObject
/*
    TopView:profile_image，screen_name，text，create_time
 */
@property (nonatomic, strong) NSString *profile_image;
@property (nonatomic, strong) NSString *screen_name;
@property (nonatomic, strong) NSString *text;
@property (nonatomic, strong) NSString *create_time;

/*
    中间图片View image0 is_gif width height
 */
@property (nonatomic, strong) NSString *image2;
@property (nonatomic, assign) BOOL is_gif;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) XMGTopicItemType type;
@property (nonatomic, assign) BOOL is_bigPicture;

@property (nonatomic, strong) UIImage *localImage;

/*
    playcount videouri videotime
 */
@property (nonatomic, strong) NSString *videouri;
@property (nonatomic, assign) NSInteger videotime;
@property (nonatomic, strong) NSString *playcount;

@property (nonatomic, strong) NSString *voiceuri;
@property (nonatomic, assign) NSInteger voicetime;

/*
    处理最热评论数据：top_cmt
 */

// 字典数组（最热评论字典数组） => 有且只有一个
@property (nonatomic, strong) NSArray *top_cmt;

@property (nonatomic, strong) XMGCommentItem *topComment;

/*
    底部View属性 cai ding comment repost
 */
@property (nonatomic, assign) CGFloat cai;
@property (nonatomic, assign) CGFloat ding;
@property (nonatomic, assign) CGFloat comment;
@property (nonatomic, assign) CGFloat repost;

@end
